#！/bin/bash
#读取、输出文本文件并统计行数
echo "Please enter a filename:"
count=0
read File
while read Line
  do
    echo $Line
    count=$(($count+1))
  done < $File
echo "THere are $count lines."

